package com.ailink.servlet;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloController {

    public HelloController() {
    }

    @ResponseBody
    @RequestMapping("/")
    public String hello(String params) {
        return "hello" + params;
    }

    @RequestMapping("/mvc")
    public ModelAndView mvc() {
        ModelAndView mv = new ModelAndView();
        mv.setViewName("mvc.html");
        return mv;
    }
}

